import os
from dotenv import load_dotenv

load_dotenv()

# Feed params
FEED_UPDATE_INTERVAL = 30  # minutes
YT_CHANNEL_ID = 'UCJAlTwrkQWgpIc5oRo-ryOw'
SUITABLE_VIDEO_TITLES = ['БГ', 'ШБ', 'Воскресная']  # video title starts with. Leave empty list if you want to take
# any videos. if you need change func is_suitable_video bellow

# telegram
BOT_TOKEN = os.getenv('TELEGRAM_BOT_TOKEN')
CHANNEL_ID = os.getenv('CHANNEL_ID')
AGENT_ID = os.getenv('AGENT_ID')
ENTITY = 'HK Minsk Audio bot'  # any session name
# BOT_NAME = 'minsk_hk_bot'
BOT_NAME = 'Granky_bot'
PHONE = os.getenv('PHONE')
API_HASH = os.getenv('API_HASH')
API_ID = os.getenv('API_ID')

# mp3 config
GENRE = 'Кришна катха'
ALBUM_NAME = 'Лекции Минского храма Кришны'
DEFAULT_SPEAKER_NAME = 'Дас'
CUSTOM_DESCRIPTION = 'Лекции @newjaipur'  # below mp3 file in the channel


# ===== change it if you need and you know what you do =====
def is_suitable_video(title):
    print(title)
    if len(SUITABLE_VIDEO_TITLES):
        for item in SUITABLE_VIDEO_TITLES:
            if title[0:len(item)] == item:
                return True
    else:
        return True
    return False
